#include "platform.h"
#include "SoftSPI.h"



SPI_t spi1 ;

void main()
{
    *SPI_BASEADDR = 0;
	LED = 0;
    Serv_BitWrite(SPI_BASEADDR, SPI0_PIN_SELECT,1);
    SoftSpi_Init(&spi1,SPI_BASEADDR,SPI0_PIN_CLOCK, SPI0_PIN_MOSI, SPI0_PIN_MISO ,1 , 1,2);
    for(volatile int i=0;i<20;i++);


    
    Serv_BitWrite(SPI_BASEADDR, SPI0_PIN_SELECT,0);
    SoftSpi_Write(&spi1,0X85);
    Serv_BitWrite(SPI_BASEADDR, SPI0_PIN_SELECT,1);

	while(1){

	}
	return ;
}


